package sum.book.common.core.enums;


import sum.book.common.core.constant.ICodeEnum;


public enum FeignCodeEnum implements ICodeEnum {

    ORDER_FEIGN_ERROR(false, "8001", "orderFeign服务错误"),

    OAUTH_FEIGN_ERROR(false, "9000", "oauthFeign服务错误"),

    SYSTEM_FEIGN_ERROR(false, "8000", "systemFeign服务错误");

    /**
     * 成功标示
     */
    private Boolean success;
    /**
     * 响应代码
     */
    private String code;
    /**
     * 响应代码说明
     */
    private String msg;

    /**
     * 构造方法
     */
    FeignCodeEnum(Boolean success, String code, String msg) {
        this.success = success;
        this.code = code;
        this.msg = msg;
    }

    /**
     * 结果
     *
     * @return 操作结果
     */
    @Override
    public Boolean success() {
        return this.success;
    }

    /**
     * 编号
     *
     * @return 操作结果编号
     */
    @Override
    public String code() {
        return this.code;
    }

    /**
     * 说明
     *
     * @return 操作结果说明
     */
    @Override
    public String message() {
        return this.msg;
    }
}
